// stores/user.js
import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useUserStore = defineStore('user', () => {
  const sex = ref('man')
  const isMan = computed(() => sex.value === 'man')
  function setSex(s) {
    sex.value = s
  }
  return { sex, isMan, setSex }
})